package com.config;

/**
 * AIKA
 * 2024/6/13
 */


import org.apache.tomcat.util.net.openssl.ciphers.*;
import org.springframework.data.domain.*;

import java.util.*;

public class JpaAutoImpl implements AuditorAware<String> {

    @Override
    public Optional<String> getCurrentAuditor() {

       /* Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
        if (authentication == null || !authentication.isAuthenticated()) {
            return Optional.of("默认");
        }*/
        String name = "wlw";
        return Optional.of(name);
    }
}

